package com.momo.rabbitmq.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TopicReceiver {

    @RabbitListener(queues = "name")
    public void handler1(String msg){
        System.out.println("name_queue==" + msg);
    }

    @RabbitListener(queues = "age")
    public void handler2(String msg){
        System.out.println("age ==" + msg);
    }

    @RabbitListener(queues = "sex")
    public void handler3(String msg){
        System.out.println("sex ==" + msg);
    }

}
